import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UserAddDto {
  @ApiProperty({ example: 123 })
  id?: number;

  @ApiProperty({ example: 'John' })
  @IsNotEmpty()
  name: string;

  @ApiProperty({ example: '1234@qq.com' })
  @IsNotEmpty()
  email: string;

  @ApiProperty({ example: '天道酬勤' })
  @IsNotEmpty()
  username: string;
}
